home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / include / Qt / qpaintdevicedefs.h.z / qpaintdevicedefs.h
Encoding:
C/C++ Source or Header  |  1998-10-28  |  3.3 KB  |  112 lines

  1. /****************************************************************************
  2. ** $Id: qpaintdevicedefs.h,v 2.7 1998/07/03 00:09:35 hanord Exp $
  3. **
  4. ** Definition of QPaintDevice constants and flags
  5. **
  6. ** Created : 940721
  7. **
  8. ** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
  9. **
  10. ** This file is part of Qt Free Edition, version 1.40.
  11. **
  12. ** See the file LICENSE included in the distribution for the usage
  13. ** and distribution terms, or http://www.troll.no/free-license.html.
  14. **
  15. ** IMPORTANT NOTE: You may NOT copy this file or any part of it into
  16. ** your own programs or libraries.
  17. **
  18. ** Please see http://www.troll.no/pricing.html for information about 
  19. ** Qt Professional Edition, which is this same library but with a
  20. ** license which allows creation of commercial/proprietary software.
  21. **
  22. *****************************************************************************/
  23.  
  24. #ifndef QPAINTDEVICEDEFS_H
  25. #define QPAINTDEVICEDEFS_H
  26.  
  27. #ifndef QT_H
  28. #include "qwindowdefs.h"
  29. #endif // QT_H
  30.  
  31.  
  32. // Painter device cmd() identifiers (for programmable, extended devices)
  33.  
  34. #define PDC_RESERVED_START    0        // codes 0-199 are reserved
  35. #define PDC_RESERVED_STOP    199        //   for Troll Tech
  36.  
  37. #define PDC_NOP            0        //  <void>
  38. #define PDC_DRAW_FIRST        1
  39. #define PDC_DRAWPOINT        1        // point
  40. #define PDC_MOVETO        2        // point
  41. #define PDC_LINETO        3        // point
  42. #define PDC_DRAWLINE        4        // point,point
  43. #define PDC_DRAWRECT        5        // rect
  44. #define PDC_DRAWROUNDRECT    6        // rect,ival,ival
  45. #define PDC_DRAWELLIPSE        7        // rect
  46. #define PDC_DRAWARC        8        // rect,ival,ival
  47. #define PDC_DRAWPIE        9        // rect,ival,ival
  48. #define PDC_DRAWCHORD        10        // rect,ival,ival
  49. #define PDC_DRAWLINESEGS    11        // ptarr
  50. #define PDC_DRAWPOLYLINE    12        // ptarr
  51. #define PDC_DRAWPOLYGON        13        // ptarr,ival
  52. #define PDC_DRAWQUADBEZIER    14        // ptarr
  53. #define PDC_DRAWTEXT        15        // point,str
  54. #define PDC_DRAWTEXTFRMT    16        // rect,ival,str
  55. #define PDC_DRAWPIXMAP        17        // point,pixmap
  56. #define PDC_DRAWIMAGE        18        // point,image
  57. #define PDC_DRAW_LAST        18
  58. #define PDC_BEGIN        30        //  <void>
  59. #define PDC_END            31        //  <void>
  60. #define PDC_SAVE        32        //  <void>
  61. #define PDC_RESTORE        33        //  <void>
  62. #define PDC_SETDEV        34        // device - PRIVATE
  63. #define PDC_SETBKCOLOR        40        // color
  64. #define PDC_SETBKMODE        41        // ival
  65. #define PDC_SETROP        42        // ival
  66. #define PDC_SETBRUSHORIGIN    43        // point
  67. #define PDC_SETFONT        45        // font
  68. #define PDC_SETPEN        46        // pen
  69. #define PDC_SETBRUSH        47        // brush
  70. #define PDC_SETTABSTOPS        48        // ival
  71. #define PDC_SETTABARRAY        49        // ival,ivec
  72. #define PDC_SETUNIT        50        // ival
  73. #define PDC_SETVXFORM        51        // ival
  74. #define PDC_SETWINDOW        52        // rect
  75. #define PDC_SETVIEWPORT        53        // rect
  76. #define PDC_SETWXFORM        54        // ival
  77. #define PDC_SETWMATRIX        55        // matrix,ival
  78. #define PDC_SETCLIP        60        // ival
  79. #define PDC_SETCLIPRGN        61        // rgn
  80.  
  81. class QIODevice;
  82.  
  83. union QPDevCmdParam {
  84.     int             ival;
  85.     int            *ivec;
  86.     const char        *str;
  87.     const QPoint    *point;
  88.     const QRect        *rect;
  89.     const QPointArray    *ptarr;
  90.     const QPixmap    *pixmap;
  91.     const QImage    *image;
  92.     const QColor    *color;
  93.     const QFont        *font;
  94.     const QPen        *pen;
  95.     const QBrush    *brush;
  96.     const QRegion    *rgn;
  97.     const QWMatrix    *matrix;
  98.     QIODevice        *device;
  99. };
  100.  
  101. // Painter device metric() identifiers (for all devices)
  102.  
  103. #define PDM_WIDTH        1
  104. #define PDM_HEIGHT        2
  105. #define PDM_WIDTHMM        3
  106. #define PDM_HEIGHTMM        4
  107. #define PDM_NUMCOLORS        5
  108. #define PDM_DEPTH        6
  109.  
  110.  
  111. #endif // QPAINTDEVICEDEFS_H
  112.